using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Export Diagram Content</para>
    /// <para>Export a diagram content to a file</para>
    /// <para>将图表内容导出到文件</para>
    /// </summary>    
    [DisplayName("Export Diagram Content")]
    public class ExportDiagramContent : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExportDiagramContent()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network or Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_network_diagram_name">
        /// <para>Network Diagram Name</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_out_file">
        /// <para>Output File</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public ExportDiagramContent(object _in_utility_network, object _network_diagram_name, object _out_file)
        {
            this._in_utility_network = _in_utility_network;
            this._network_diagram_name = _network_diagram_name;
            this._out_file = _out_file;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Export Diagram Content";

        public override string CallName => "un.ExportDiagramContent";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _network_diagram_name, _out_file, _include_diagram_properties.GetGPValue(), _include_geometries.GetGPValue(), _include_attributes.GetGPValue(), _include_aggregations.GetGPValue(), _use_domains.GetGPValue()];

        /// <summary>
        /// <para>Input Network or Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network or Network Diagram Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Network Diagram Name</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Network Diagram Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _network_diagram_name { get; set; }


        /// <summary>
        /// <para>Output File</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_file { get; set; }


        /// <summary>
        /// <para>Include diagram properties</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Include diagram properties")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _include_diagram_properties_value _include_diagram_properties { get; set; } = _include_diagram_properties_value._false;

        public enum _include_diagram_properties_value
        {
            /// <summary>
            /// <para>INCLUDE_DIAGRAM_PROPERTIES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INCLUDE_DIAGRAM_PROPERTIES")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>EXCLUDE_DIAGRAM_PROPERTIES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("EXCLUDE_DIAGRAM_PROPERTIES")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Include geometries</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Include geometries")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _include_geometries_value _include_geometries { get; set; } = _include_geometries_value._false;

        public enum _include_geometries_value
        {
            /// <summary>
            /// <para>INCLUDE_GEOMETRIES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INCLUDE_GEOMETRIES")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>EXCLUDE_GEOMETRIES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("EXCLUDE_GEOMETRIES")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Include attributes</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Include attributes")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _include_attributes_value _include_attributes { get; set; } = _include_attributes_value._false;

        public enum _include_attributes_value
        {
            /// <summary>
            /// <para>INCLUDE_ATTRIBUTES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INCLUDE_ATTRIBUTES")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>EXCLUDE_ATTRIBUTES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("EXCLUDE_ATTRIBUTES")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Include aggregations</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Include aggregations")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _include_aggregations_value _include_aggregations { get; set; } = _include_aggregations_value._false;

        public enum _include_aggregations_value
        {
            /// <summary>
            /// <para>INCLUDE_AGGREGATIONS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INCLUDE_AGGREGATIONS")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>EXCLUDE_AGGREGATIONS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("EXCLUDE_AGGREGATIONS")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Use domain and subtype descriptions</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Use domain and subtype descriptions")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _use_domains_value _use_domains { get; set; } = _use_domains_value._false;

        public enum _use_domains_value
        {
            /// <summary>
            /// <para>USE_CODED_VALUE_NAMES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("USE_CODED_VALUE_NAMES")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DONT_USE_CODED_VALUE_NAMES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DONT_USE_CODED_VALUE_NAMES")]
            [GPEnumValue("false")]
            _false,

        }

        public ExportDiagramContent SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}